package pb

import (
	"context"
	"go_end/internal/service"

	"go_end/api/pb/v1"
)

func (c *ControllerV1) GetSessionData(ctx context.Context, req *v1.GetSessionDataReq) (res *v1.GetSessionDataRes, err error) {

	session := service.Pb().GetSession(ctx)
	res = new(v1.GetSessionDataRes)
	res.Header = session

	return res, nil
}
